﻿
<table>
    <tr>
       
        <td>所属公司</td>
        <td>
            <div id="autcompany_name" name="company_name" onvaluechanged="oncompanyChanged" class="mini-autocomplete" style="width:100px;" popupwidth="200" textfield="company_name" valuefield="company_name" valuefromselect="true" oncloseclick="    onCloseClick" pinyinfield="company_name"
                 showclose="true" url="../../Share/GetJsonList?tablename=v_fin_BillAuditing&fieldnames=company_name&searchField=company_name&where=1=1 group by company_name">
                <div property="columns">
                    <div header="公司名称" field="company_name"></div>
                </div>
            </div>

        </td>
        
        
        
         <td>
            收款日期
        </td>
        <td>
            <input id="start_date" name="statr_date" class="mini-datepicker" style="width:100px;" />
        </td>
        <td>
            <input id="end_date" name="end_date" class="mini-datepicker" style="width:100px;" />
        </td>
        <td>结算单号</td>
        <td>
            <!--<input id="bill_no" name="bill_no" class="mini-textbox" style="width:140px;" />-->
            <div id="autbill_no" name="bill_no" class="mini-autocomplete" style="width:170px;" popupwidth="200" textfield="bill_no" valuefield="bill_no" valuefromselect="true" oncloseclick="onCloseClick" pinyinfield="bill_no"
                 showclose="true" url="../../Share/GetJsonList?tablename=t_arps&fieldnames=bill_no&searchField=bill_no">
                <div property="columns">
                    <div header="简称" field="bill_no"></div>
                </div>
            </div>
        </td>
        <td>客户</td>
        <td>
            <div id="autcustomer_name" name="customer_name" class="mini-autocomplete" style="width:150px;float: left;" popupwidth="400" allowinput="true" textfield="short" valuefield="id"
                 valuefromselect="true"
                 url="../../Share/GetJsonList?tablename=t_base_objs&fieldnames=id,zucode,short&where=zclass_id=100&searchField=short,zucode">
                <div property="columns">
                    <div header="id" field="id" width="0"></div>
                    <div header="编号" field="zucode"></div>
                    <div header="简称" field="short"></div>
                </div>
            </div>
        </td>
        <td>结算单审核状态</td>
        <td>
            <input id="status_type" name="status_type" shownullitem="true" class="mini-combobox" style="width: 100px;"
                   data="[{id:0,text:'未审核'},{id:1,text:'已审核'}]" textfield="text" valuefield="id" />
        </td>
        <td>
            <a class="mini-button" iconcls="icon_find" onclick="fnCustomQuciklyQuery()">简单查询</a>
        </td>

    </tr>
</table>

<script>
    function oncompanyChanged(e) {
        var company_name = mini.get("autcompany_name").getValue();
        var autbill_no = mini.get("autbill_no");
        //autbill_no.setValue("");
        if (company_name == "") {
            var url = "../../../Share/GetJsonList?tablename=t_arps&fieldnames=bill_no&searchField=bill_no";
            autbill_no.setUrl(url);
        }
        else {
            var url = "../../Share/GetJsonList?tablename=v_fin_BillAuditing&fieldnames=bill_no&searchField=bill_no&where=company_name=" + "'" + company_name + "'";//group by bill_no";
            autbill_no.setUrl(url);
        }
    }
</script>







<!--<table style="width: 100%;">
    <tr>
        <td class="theader">服务器名称</td>
        <td>
            <input id="servicer_name" name="servicer_name" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>
        <td class="theader">服务器ip</td>
        <td>
            <input id="servicer_ip" name="servicer_ip" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>
    </tr>
    <tr>
        <td class="theader">服务地址</td>
        <td>
            <input id="servicer_address" name="servicer_address" class="mini-textbox" textfield="name" valuefield="id" popupwidth="auto" popup="#gridPanel" grid="#datagrid1" multiselect="flase" style="width: 180px;" />
        </td>

        <td class="theader" style="width: 120px;">当日最多访问次数</td>
        <td>
            <input id="servicer_visit_amount" name="servicer_visit_amount" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>

    </tr>
    <tr>
        <td class="theader">管理员账号</td>
        <td>
            <input id="servicer_manager_no" name="servicer_manager_no" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>

        <td class="theader">密码</td>
        <td>
            <input id="servicer_password" name="servicer_password" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>
    </tr>
    <tr>
        <td class="theader">是否可用</td>
        <td>
            <input id="servicer_available" name="servicer_available" allowinput="true" shownullitem="false" class="mini-checkbox" truevalue="1" falsevalue="0"
                   style="width: 100%;" />
        </td>

        <td class="theader">是否服务器</td>
        <td>
            <input id="servicer_yn" name="servicer_yn" allowinput="true" shownullitem="false" class="mini-checkbox" truevalue="1" falsevalue="0"
                   style="width: 100%;" />

        </td>

    </tr>
    <tr>
        <td class="theader">所属公司</td>
        <td>
            <div id="servicer_company_id" name="servicer_company_id" textname="servicer_company_name" class="mini-combobox" style="width:180px" popupwidth="200" textfield="name" valuefield="id"
                 url="/extendpage/data/jsondata.aspx?entity=t_base_department&condition=name='华物报关公司' or name='华报报关公司' " multiselect="false">
                <div property="columns">
                    <div header="所属公司" field="name"></div>
                </div>
            </div>

        </td>

        <td class="theader">报关卡所属人</td>
        <td>
            <input id="servicer_card_by" name="servicer_card_by" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>
    </tr>
    <tr>
        <td class="theader">备注</td>
        <td>
            <input id="remark" name="remark" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>
    </tr>



</table>




<table style="width: 100%;">
    <tr>
        <td class="theader">QP服务器ID</td>
        <td>
            <input id="servicer_id" name="servicer_id" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>
    </tr>
    <tr>
        <td class="theader">授权机构ID</td>
        <td>
            <input id="servicer_org_id" name="servicer_org_id" textname="servicer_org_name" shownullitem="true" popupwidth="200"
                   class="mini-treeselect" style="width:100%" url="/extendpage/data/jsondata.aspx?entity=t_base_department&type=1"
                   textfield="name" valuefield="id" parentfield="parent_id" />
        
        </td>
    </tr>
    <tr>
        <td class="theader">授权人ID</td>
        <td>
            <input id="servicer_authorizer_id" name="servicer_authorizer_id" class="mini-textbox" textfield="name" valuefield="id" popupwidth="auto" popup="#gridPanel" grid="#datagrid1" multiselect="flase" style="width: 180px;" />
        </td>
    </tr>
    <tr>
        <td class="theader">授权黑名单</td>
        <td>
            <input id="servicer_authorizer_blacklist" name="servicer_authorizer_blacklist" allowinput="true" shownullitem="false" class="mini-checkbox" truevalue="1" falsevalue="0"
                   style="width: 100%;" />
        </td>
    </tr>

    <tr>
        <td class="theader" style="width: 120px;">当日最多访问次数</td>
        <td>
            <input id="servicer_visit_num" name="servicer_visit_num" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>
    </tr>
    <tr>

        <td class="theader">备注</td>
        <td>
            <input id="remark" name="remark" allowinput="true" shownullitem="false" class="mini-textbox" style="width: 180px;" />
        </td>
    </tr>

</table>-->












